<div class="payment_top">
    <a href="javascript:history.go(-1)"><img class="backImg" src="images/leftarrow.png"></a>
    <span class="payment_title">自动开关机</span>
    <div class="backBtn_right" ng-show="vm.timecheck">确定</div>
</div>
<div class="usermember_center">
    <ul class="tablehome_item_detial_two" style="margin-top: 60px">
        <li>
            <div style="height: 60px" >
                <div class="tableitem_text_detail">定时开关机</div>
                <!--<div class="tableitem_paint_detail" ng-click="vm.save()">-->
                    <!--<input type="checkbox" name="sex" id="male1" class="chooseBtn" ng-model="vm.type"/>-->
                    <!--<label for="male1" class="choose-label"></label>-->
                <!--</div>-->
            </div>
        </li>
        <li ng-repeat="time in vm.time">
        <div style="height: 60px;line-height:60px;" ng-class="{'time-black':time.type==1,'time-grey':time.type==0}">
            <span ng-click="vm.alertTimeByTimeimgID(time.timeingid,time.openTime,time.closeTime)">
                <div style="width: 50%;float: left;">开机时间</div>
                <div style="width: 35%;float: left;" >{{time.openTime}}-{{time.closeTime}}</div>
            </span>
            <!--<div style="width: 5%;float: left;"><img src="images/rightarrow.png" style="width: 12px"></div>-->
            <div class="tableitem_paint_detail">
                <input type="checkbox" name="sex" id="{{time.timeingid}}" class="chooseBtn" ng-model="time.type"
                       ng-click="vm.save(time)"/>
                <label for="{{time.timeingid}}" class="choose-label"></label>
            </div>
        </div>
        </li>
        <li ng-click="vm.addTime()">
            <div style="height: 60px;line-height:60px;color: black;" >
                <div style="width: 95%;float: left;">添加开机时间</div>
                <div style="width: 5%;float: left;"><img src="images/rightarrow.png" style="width: 12px"></div>
            </div>
        </li>
        <!--<li ng-show="vm.type" >-->
            <!--<div style="height: 60px" >-->
                <!--<div class="tableitem_text_detail">开机时间</div>-->
                <!--<div class="tableitem_paint_detail" style="width: 50px;">-->
                    <!--<input type="text" id="open" ng-click="vm.checkStartTime()" ng-model="vm.openTime" value="" style="border-style: hidden"/>-->
                <!--</div>-->
            <!--</div>-->
        <!--</li>-->
        <!--<li ng-show="vm.type==true">-->
            <!--<div style="height: 60px">-->
                <!--<div class="tableitem_text_detail">关机时间</div>-->
                <!--<div class="tableitem_paint_detail">-->
                    <!--<div class="tableitem_paint_detail" style="width: 50px;">-->
                        <!--<input id="close" ng-model="vm.closeTime"  ng-click="vm.checkEndTime()"  value="" style="border-style: hidden">-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
        <!--</li>-->
        <li ng-click="vm.openmotal()">
            <div style="height: 60px">
                <div class="tableitem_text_detail">强制开机</div>
            </div>
        </li>
        <li ng-click="vm.closemotal()">
            <div style="height: 60px">
                <div class="tableitem_text_detail">强制关机</div>
            </div>
        </li>
    </ul>


</div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     style="margin-top: 65px">
    <div class="modal-dialog modal_content" role="document">
        <div class="modal-content model_content_sub">
            <div class="modal-body" ng-show="vm.status==1">
                确定后，设备将被强制开机
            </div>
            <div class="modal-body" ng-show="vm.status==2">
                确定后，设备将被强制关机
            </div>
            <div class="margin_top_none">
                <button id="cancelbtn" type="button" class="detail_btn detail_btn_active" data-dismiss="modal" >取消
                </button>
                <button id="updatesure" type="button" class=" detail_btn" data-toggle="modal" ng-click="vm.sure()">确定
                </button>
            </div>
        </div>
    </div>
</div>
<message-Component message-visible="vm.messageVisible" message="vm.message"  surebtn="vm.sureBtn()"
                   cancelbtn="vm.cancelBtn()"></message-Component>

